package com.softtown.modules.organization.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.softtown.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 员工-岗位
 *
 * @author Dingyayong
 * @version v1.0
 * @create 2019-05-17 14:03
 **/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("comp_org_empl_posn")
public class CompOrgEmplPosnEntity extends BaseEntity {
    private static final Long serialVersionUID = 1L;

    /**
     * 公司所属id
     * isNullAble:0
     */
    private Long compId;

    /**
     * 员工id
     * isNullAble:0
     */
    private Long emplId;

    /**
     * 岗位id
     * isNullAble:0
     */
    private Long posnId;

    /**
     * 更新者
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    /**
     * 更新时间
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 更新时间戳
     * isNullAble:1
     */
    private String updateTimestamp;

    /**
     * 逻辑删除
     * isNullAble:1
     */
    private Integer isDeleted;

    /**
     * 员工号
     * isNullAble:0
     */
    @TableField(exist = false)
    private String emplNum;

    /**
     * 员工姓名
     * isNullAble:0
     */
    @TableField(exist = false)
    private String realName;

    /**
     * 性别
     * isNullAble:0
     */
    @TableField(exist = false)
    private String gender;

    /**
     * 部门id
     * isNullAble:0
     */
    @TableField(exist = false)
    private Long deptId;

    /**
     * 部门名称
     * isNullAble:0
     */
    @TableField(exist = false)
    private String deptName;

    /**
     * 部门名称
     * isNullAble:0
     */
    @TableField(exist = false)
    private String posnName;

    /**
     * 部门名称
     * isNullAble:0
     */
    @TableField(exist = false)
    private Long userId;

    /**
     * 状态
     * isNullAble:0
     */
    @TableField(exist = false)
    private Integer status;
}

